const bannerModel = require('../model/bannerModel');

module.exports.getBannerList = async function () {
  return await bannerModel.findAll()
}
module.exports.updateBanner = async function (bannerList) {
  await bannerModel.destroy({ truncate: true })
  return await bannerModel.bulkCreate(bannerList)
}